#ifndef DIRECT_AUDIO
#define DIRECT_AUDIO
#include "IAudio.h"
#include "dsound.h"

class DirectAudio : public IAudio
{
public:
	DirectAudio();
	virtual ~DirectAudio();

	virtual bool	Intialize(HWND hWnd);
	virtual void	Update(int iDeltaTime);
	virtual bool	Finalize();

	virtual bool	PlayAudio(const char* pcFile,bool bMusic = true);
	virtual bool	Stop(const char* pcFile);
	virtual bool	StopAll();

	virtual void	SetVolume(int iVol,bool bMusic = true);

private:
	HWND					m_hWnd;

	LPDIRECTSOUND			m_lpDs;
	LPDIRECTSOUNDBUFFER		m_lpDsBuffer;
};

#endif



